Optimal. Leaf size=67 \[ x \log ^2\left (\frac {c x^2}{(b+a x)^2}\right )+\frac {4 b \log \left (\frac {c x^2}{(b+a x)^2}\right ) \log \left (\frac {b}{b+a x}\right )}{a}+\frac {8 b \text {Li}_2\left (1-\frac {b}{b+a x}\right )}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {2536, 2542,
2458, 2378, 2370, 2352} \begin {gather*} \frac {8 b \text {PolyLog}\left (2,1-\frac {b}{a x+b}\right )}{a}+x \log ^2\left (\frac {c x^2}{(a x+b)^2}\right )+\frac {4 b \log \left (\frac {b}{a x+b}\right ) \log \left (\frac {c x^2}{(a x+b)^2}\right )}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2352
Rule 2370
Rule 2378
Rule 2458
Rule 2536
Rule 2542
Rubi steps
\begin {align*} \int \log ^2\left (\frac {c x^2}{(b+a x)^2}\right ) \, dx &=x \log ^2\left (\frac {c x^2}{(b+a x)^2}\right )-(4 b) \int \frac {\log \left (\frac {c x^2}{(b+a x)^2}\right )}{b+a x} \, dx\\ &=x \log ^2\left (\frac {c x^2}{(b+a x)^2}\right )+\frac {4 b \log \left (\frac {c x^2}{(b+a x)^2}\right ) \log \left (\frac {b}{b+a x}\right )}{a}-\frac {\left (8 b^2\right ) \int \frac {\log \left (\frac {b}{b+a x}\right )}{x (b+a x)} \, dx}{a}\\ &=x \log ^2\left (\frac {c x^2}{(b+a x)^2}\right )+\frac {4 b \log \left (\frac {c x^2}{(b+a x)^2}\right ) \log \left (\frac {b}{b+a x}\right )}{a}-\frac {\left (8 b^2\right ) \text {Subst}\left (\int \frac {\log \left (\frac {b}{x}\right )}{x \left (-\frac {b}{a}+\frac {x}{a}\right )} \, dx,x,b+a x\right )}{a^2}\\ &=x \log ^2\left (\frac {c x^2}{(b+a x)^2}\right )+\frac {4 b \log \left (\frac {c x^2}{(b+a x)^2}\right ) \log \left (\frac {b}{b+a x}\right )}{a}+\frac {\left (8 b^2\right ) \text {Subst}\left (\int \frac {\log (b x)}{\left (-\frac {b}{a}+\frac {1}{a x}\right ) x} \, dx,x,\frac {1}{b+a x}\right )}{a^2}\\ &=x \log ^2\left (\frac {c x^2}{(b+a x)^2}\right )+\frac {4 b \log \left (\frac {c x^2}{(b+a x)^2}\right ) \log \left (\frac {b}{b+a x}\right )}{a}+\frac {\left (8 b^2\right ) \text {Subst}\left (\int \frac {\log (b x)}{\frac {1}{a}-\frac {b x}{a}} \, dx,x,\frac {1}{b+a x}\right )}{a^2}\\ &=x \log ^2\left (\frac {c x^2}{(b+a x)^2}\right )+\frac {4 b \log \left (\frac {c x^2}{(b+a x)^2}\right ) \log \left (\frac {b}{b+a x}\right )}{a}+\frac {8 b \text {Li}_2\left (\frac {a x}{b+a x}\right )}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 106, normalized size = 1.58 \begin {gather*} x \log ^2\left (\frac {c x^2}{(b+a x)^2}\right )-\frac {8 b \log \left (-\frac {a x}{b}\right ) \log \left (\frac {b}{b+a x}\right )}{a}+\frac {4 b \log \left (\frac {c x^2}{(b+a x)^2}\right ) \log \left (\frac {b}{b+a x}\right )}{a}-\frac {4 b \log ^2\left (\frac {b}{b+a x}\right )}{a}+\frac {8 b \text {Li}_2\left (\frac {b+a x}{b}\right )}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.07, size = 0, normalized size = 0.00 \[\int \ln \left (\frac {c \,x^{2}}{\left (a x +b \right )^{2}}\right )^{2}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 118, normalized size = 1.76 \begin {gather*} x \log \left (\frac {c x^{2}}{{\left (a x + b\right )}^{2}}\right )^{2} - \frac {4 \, b \log \left (a x + b\right ) \log \left (\frac {c x^{2}}{{\left (a x + b\right )}^{2}}\right )}{a} + \frac {4 \, {\left ({\left (\frac {c \log \left (a x + b\right )^{2}}{a} - \frac {2 \, {\left (\log \left (\frac {a x}{b} + 1\right ) \log \left (x\right ) + {\rm Li}_2\left (-\frac {a x}{b}\right )\right )} c}{a}\right )} b - \frac {2 \, {\left (c \log \left (a x + b\right ) - c \log \left (x\right )\right )} b \log \left (a x + b\right )}{a}\right )}}{c} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - 4 b \int \frac {\log {\left (\frac {c x^{2}}{a^{2} x^{2} + 2 a b x + b^{2}} \right )}}{a x + b}\, dx + x \log {\left (\frac {c x^{2}}{\left (a x + b\right )^{2}} \right )}^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\ln \left (\frac {c\,x^2}{{\left (b+a\,x\right )}^2}\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________